  <!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="generator"
    content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
    <meta charset="utf-8" />
    <title>后台管理-用户中心首页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
    <meta content="Coderthemes" name="author" />
    <!-- App favicon -->
    <link rel="shortcut icon" href="/public/assets/images/favicon.ico" />
    <!-- third party css -->
    <link href="/public/assets/css/vendor/dataTables.bootstrap4.css" rel="stylesheet" type="text/css" />
    <link href="/public/assets/css/vendor/responsive.bootstrap4.css" rel="stylesheet" type="text/css" />
    <!-- third party css end -->
    <link rel="stylesheet" type="text/css" href="/public/static/index/layui/css/layui.css" />
    <!-- App css -->
    <link href="/public/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="/public/assets/css/app.min.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <!-- Begin page -->
    <div class="wrapper">
    <!-- ========== Left Sidebar Start ========== -->
    {include file="public/left" /} 
    <!-- Left Sidebar End -->
     
    <!-- ============================================================== -->
     
    <!-- Start Page Content here -->
     
    <!-- ============================================================== -->
    <div class="content-page">
      <div class="content">
      <!-- Topbar Start -->
      {include file="public/top" /} 
      <!-- end Topbar -->
       
      <!-- Start Content-->
      <div class="container-fluid">
        <!-- start page title -->
        <div class="row">
          <div class="col-12">
            <div class="page-title-box">
              <div class="page-title-right">
                <ol class="breadcrumb m-0">
                  <li class="breadcrumb-item">
                    <a href="admin">首页</a>
                  </li>
                  <li class="breadcrumb-item active">
                    <a href="javascript:%20void(0);">单群配置</a>
                  </li>
                </ol>
              </div>
              <h4 class="page-title">单群配置</h4>
            </div>
          </div>
        </div>
        <!-- end page title -->
        <div class="row">
          <div class="col-xl-6" style="width:100%;flex: 0 0 100%;max-width: 100%;">
            <div class="card">
              <div class="card-body">
                {include file="public/daohang" /} 
                <div class="tab-content">
             
                
                    
                
                    <div class="col-lg-6" style="width: 100%;max-width:100%;">
                      <div class="card" style="width: 100%;">
                        <div class="card-body" style="width: 100%;">
                          <ul class="nav nav-tabs nav-bordered mb-3" style="width: 100%;">
                            <li class="nav-item">
                              <a href="#home-b1" data-toggle="tab" {if $erji == 1}aria-expanded="true" class="nav-link active"{else/} aria-expanded="false" class="nav-link"{/if}>
                                <span class="d-none d-lg-block">常见问题</span>
                              </a>
                            </li>
                            <li class="nav-item">
                              <a href="#profile-b1" data-toggle="tab" {if $erji == 2}aria-expanded="false" class="nav-link active"{else/} aria-expanded="false" class="nav-link"{/if}>
                                <span class="d-none d-lg-block">常见问题列表</span>
                              </a>
                            </li>
                          </ul>
                          <div class="tab-content">
                            <div class="tab-pane show {if $erji == 1}  active{/if}" id="home-b1">
                              <form action="" method="post">
                                   <div class="form-group">
                                <label for="inputAddress2" class="col-form-label">自定义标题名称</label> 
                                <input type="text" class="form-control" name="zidingname"
                                value="{$ask.zidingname}" /></div>
                                  
                                <div class="form-group mb-3">
                                <label for="example-select">是否在前台显示</label> 
                                <select class="form-control" name="chengyuatouxiangxianshi">
                                  <option value="1" name="mentouxianshi">显示</option>
                                  <option value="2" name="mentouxianshi">不显示</option>
                                </select></div>
                                <button type="submit" class="btn btn-primary">修改</button>
                              </form>
                            </div>
                            <div class="tab-pane {if $erji == 2} active{/if}" id="profile-b1">
                                                      <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-body">
                                         <a href="wentiadd">
                                        <button type="button" class="btn btn-success">添加常见问题</button>
                                    </a>

                                        <table id="basic-datatable" class="table dt-responsive nowrap" width="100%">
                                            <thead>
                                                <tr>
                                                    <th>问题标题	</th>
                                                    <th>问题答案	</th>
                                                    <th>操作</th>
                                                </tr>
                                            </thead>
                                        
                                        
                                            <tbody>
                                                  {volist name='wenda' id='vo' }   
                                                <tr>
                                                 
                                                    <td>{$vo.wen}</td>
                                                    <td>{$vo.da}</td>
                                                   <td><a href="/admin/danqun/listdel?id={$vo.id}">删除</a></td>
                                                </tr>
                                                 {/volist} 
                                            </tbody>
                                        </table>

                                    </div> <!-- end card body-->
                                </div> <!-- end card -->
                            </div><!-- end col-->
                        </div>
                            </div>
                          </div>
                        </div>
                        <!-- end card-body-->
                      </div>
                      <!-- end card-->
                    </div>
                    <!-- end col -->
           
                 
                  
                  
                  
                  
                  
                 
               
          
             
                  
                  
                </div>
              </div>
              <!-- end card-body-->
            </div>
            <!-- end card-->
          </div>
          <!-- end col -->
        </div>
        <!-- end row-->
      </div>
      <!-- content -->
      <!-- Footer Start -->
      {include file="public/foot" /} 
      <!-- end Footer --></div>
      <!-- ============================================================== -->
      <!-- End Page content -->
      <!-- ============================================================== -->
    </div>
    <!-- END wrapper -->
    <!-- Right Sidebar -->
    <div class="right-bar">
      <div class="rightbar-title">
        <a href="javascript:void(0);" class="right-bar-toggle float-right"></a>
        <h5 class="m-0">Settings</h5>
      </div>
      <div class="slimscroll-menu rightbar-content">
        <!-- Settings -->
        <hr class="mt-0" />
        <h5 class="pl-3">Basic Settings</h5>
        <hr class="mb-0" />
        <div class="p-3">
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="notifications-check" checked="checked" /> 
          <label class="custom-control-label" for="notifications-check">Notifications</label></div>
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="api-access-check" /> 
          <label class="custom-control-label" for="api-access-check">API Access</label></div>
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="auto-updates-check" checked="checked" /> 
          <label class="custom-control-label" for="auto-updates-check">Auto Updates</label></div>
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="online-status-check" checked="checked" /> 
          <label class="custom-control-label" for="online-status-check">Online Status</label></div>
          <div class="custom-control custom-checkbox mb-2">
          <input type="checkbox" class="custom-control-input" id="auto-payout-check" /> 
          <label class="custom-control-label" for="auto-payout-check">Auto Payout</label></div>
        </div>
        <!-- Timeline -->
        <hr class="mt-0" />
        <h5 class="pl-3">Recent Activity</h5>
        <hr class="mb-0" />
        <div class="pl-2 pr-2">
          <div class="timeline-alt">
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-info font-weight-bold mb-1 d-block">You sold an item</a> 
              <small>Paul Burgess just purchased “Hyper - Admin Dashboard”!</small>
              <p class="mb-0 pb-2">
                <small class="text-muted">5 minutes ago</small>
              </p></div>
            </div>
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-primary font-weight-bold mb-1 d-block">Product on the Bootstrap Market</a> 
              <small>Dave Gamache added 
              <span class="font-weight-bold">Admin Dashboard</span></small>
              <p class="mb-0 pb-2">
                <small class="text-muted">30 minutes ago</small>
              </p></div>
            </div>
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-info font-weight-bold mb-1 d-block">Robert Delaney</a> 
              <small>Send you message 
              <span class="font-weight-bold">&quot;Are you there?&quot;</span></small>
              <p class="mb-0 pb-2">
                <small class="text-muted">2 hours ago</small>
              </p></div>
            </div>
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-primary font-weight-bold mb-1 d-block">Audrey Tobey</a> 
              <small>Uploaded a photo 
              <span class="font-weight-bold">&quot;Error.jpg&quot;</span></small>
              <p class="mb-0 pb-2">
                <small class="text-muted">14 hours ago</small>
              </p></div>
            </div>
            <div class="timeline-item">
              <div class="timeline-item-info">
              <a href="#" class="text-info font-weight-bold mb-1 d-block">You sold an item</a> 
              <small>Paul Burgess just purchased “Hyper - Admin Dashboard”!</small>
              <p class="mb-0 pb-2">
                <small class="text-muted">1 day ago</small>
              </p></div>
            </div>
          </div>
        </div>
      </div>
    </div>
         <script type="text/javascript" src="/public/static/admin2/ueditor/1.4.3/ueditor.config.js"></script>
    <script type="text/javascript" src="/public/static/admin2/ueditor/1.4.3/ueditor.all.min.js"> </script>
    <script type="text/javascript" src="/public/static/admin2/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
 <script type="text/javascript" src="/public/static/index/layui/layui.js"></script>
  <script>
    var ue = UE.getEditor('editor');
  </script>
    <script>
    /*-删除时候确认*/
    function public_del(url){
        layui.use('layer', function(){
            var layer = layui.layer;
            layer.confirm('确认要删除吗？',function(index){
                window.location.href=url;
            });
        });
    }


    layui.use('upload', function () {
      var upload = layui.upload;

      //执行上传实例
      var uploadInst = upload.render({
        elem: '#test1' //绑定元素
        , url: '/admin/uploader/upload' //上传接口
        , done: function (res) {
          //上传完毕回调
          console.log(res);
          //path = JSON.stringify(res.path);
          //path = path.replace("\"", "").replace("\"", "");
          $(".public_thumb_input").val(res.path);
          $(".public_thumb").attr("src", res.path);
          $(".public_thumb_box").css("display", "block");
        }
        , error: function () {
          //请求异常回调
        }
      });
    });


    //实时删除图片
    $(".delete_img").click(function(){
        var path=$(this).parent().children(".public_thumb_input").val();
        var url="/admin/uploader/delete_img";
        var model = $(this).parent().attr('attr-model');//编辑默认删除图片
        var id=$("input[name='id']").val();//编辑默认删除图片
        postData = {'path':path,'model':model,'id':id};
        $.post(url,postData,function(result){
          result=JSON.parse(result);
          if(result.status==1){
            $(".public_thumb_input").val("");
            $(".public_thumb").attr("src", "");
            $(".public_thumb_box").css("display", "none");
            layui.use('layer', function(){
              var layer = layui.layer;
              layer.msg('已经删除成功！');
            }); 
          }
        });
    });

    //排序
    $('.listorder input').blur(function() {
    // 编写我们的抛送的逻辑
    //获取主键id
    var id = $(this).attr('attr-id');
    var model=$(this).attr('attr-model');
    // 获取排序的值
    var listorder = $(this).val();
    if(!listorder){
      return;
    }
    var postData = {

        'id' : id,
        'model':model,
        'listorder':listorder,
    };

    var url = "/admin/base/listorder";
    // 抛送http
    $.post(url, postData, function(result){
        // 逻辑
        if(result.code == 1) {
            location.href=result.data;
        }else {
            alert(result.msg);
        }
    },"json");


});

    </script>     <!-- App js -->
        <script src="/public/assets/js/app.min.js"></script>

        <!-- third party js -->
        <script src="/public/assets/js/vendor/jquery.dataTables.min.js"></script>
        <script src="/public/assets/js/vendor/dataTables.bootstrap4.js"></script>
        <script src="/public/assets/js/vendor/dataTables.responsive.min.js"></script>
        <script src="/public/assets/js/vendor/responsive.bootstrap4.min.js"></script>
        <script src="/public/assets/js/vendor/dataTables.checkboxes.min.js"></script>
        <!-- third party js ends -->

        <!-- demo app -->
        <script src="/public/assets/js/pages/demo.customers.js"></script>
        <!-- end demo js-->
 <script src="/public/assets/js/vendor/dropzone.min.js"></script>

    <!-- File upload js -->
    <script src="/public/assets/js/ui/component.fileupload.js"></script>
    </body>
</html>
  
               